Object.defineProperty(exports, "__esModule", {
    value: !0
});

var t = wx.getSystemInfoSync();

exports.default = {
    getSystemInfo: t,
    isIos: function() {
        return t.system.toLowerCase().includes("ios");
    },
    getWindowWidth: function() {
        return t.windowWidth;
    },
    getWindowHeight: function() {
        return t.windowHeight;
    },
    getScreenHeight: function() {
        return t.screenHeight;
    },
    getStatusBarHeight: function() {
        return t.statusBarHeight;
    },
    getPixelRatio: function() {
        return t.pixelRatio;
    },
    isIpx: function() {
        return this.isIos() && this.getStatusBarHeight() > 20;
    },
    getNavbarHeight: function() {
        
        return (this.isIos() ? 44 : 48) + this.getStatusBarHeight();
    },
    getBaseLibVersion: function() {
        return this.getSystemInfo.SDKVersion;
    },
    rpx2px: function(t) {
        var e = this.getWindowWidth() / 750;
        return parseFloat((t * e).toPrecision(12), 10);
    },
    px2rpx: function(t) {
        var e = t / this.getWindowWidth();
        return Math.ceil((750 * e).toPrecision(12));
    },
    isOpenByTimeline: function() {
        return 1154 === wx.getStorageSync("scene");
    }
};